package chixing.day18.class2;
import java.util.Scanner;

public class X extends Thread{
    @Override
    public void run() {
        //等待用户输入
       /* Scanner c = new Scanner(System.in);
        System.out.println("请输入你的姓名：");
        // -------------------线程进入了  阻塞状态 block
        String name = c.next();
        System.out.println(name);*/


        int a = 10;
        System.out.println("111111111111111111");
        try {
            Thread.sleep(2000);     // ------------------sleep()线程进入了  阻塞状态 block
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        System.out.println("222222222222222");
    }
}
